-
Notifications
You must be signed in to change notification settings - Fork 222
feat: introduce AnnotationDependentResourceConfigurator concept #1532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Co-authored-by: Chris Laprun <[email protected]>
* feat: decouple event source from cache + list discriminator (#1378) * feat: bulk dependent resources (#1448) * feat: optional eventsource on dependent resources (#1479) * refactor: simplify handling of reused event sources (#1518) Co-authored-by: Chris Laprun <[email protected]> * refactor: isolate index handling to BulkDependentResource interface (#1517) * feat: key based bulk resource creation (#1521) * improvement: bulk dependent resource api * merge Co-authored-by: Chris Laprun <[email protected]> Co-authored-by: Chris Laprun <[email protected]>
6095777
to
ef266b3
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made some comments, nothing serious, I still think this could be done using an annotation instead of the interface, but we can experiment with that later.
There are some parts what is not clear to me, we should clarify document those.
.../src/main/java/io/javaoperatorsdk/operator/api/config/AnnotationControllerConfiguration.java
Show resolved
Hide resolved
...e/src/main/java/io/javaoperatorsdk/operator/api/config/ControllerConfigurationOverrider.java
Outdated
Show resolved
Hide resolved
...javaoperatorsdk/operator/api/reconciler/dependent/managed/DependentResourceConfigurator.java
Show resolved
Hide resolved
...hema/src/main/java/io/javaoperatorsdk/operator/sample/dependent/SchemaDependentResource.java
Outdated
Show resolved
Hide resolved
...hema/src/main/java/io/javaoperatorsdk/operator/sample/dependent/SchemaDependentResource.java
Show resolved
Hide resolved
...javaoperatorsdk/operator/api/reconciler/dependent/managed/DependentResourceConfigurator.java
Show resolved
Hide resolved
Otherwise looks very good :) |
* refactor: deleteBulkResource -> deleteTargetResource * refactor: remove now unneeded class * refactor: deleteBulkResourcesIfRequired -> deleteExtraResources * fix: javadoc
The idea is to be able to configure dependents using annotations directly so that we can remove the special handling of KubernetesDependentResource from AnnotationControllerConfiguration. This results in dependent resources being instantiated and configured directly when processed from the annotations in the managed case, thus rendering the DependentResourceFactory concept obsolete. This should also lead to further simplification later.
ef266b3
to
efcfe39
Compare
Kudos, SonarCloud Quality Gate passed! |
The idea is to be able to configure dependents using annotations
directly so that we can remove the special handling of
KubernetesDependentResource from AnnotationControllerConfiguration. This
results in dependent resources being instantiated and configured
directly when processed from the annotations in the managed case, thus
rendering the DependentResourceFactory concept obsolete. This should
also lead to further simplification later.